New verify-error GnuTLS interface for certificate validation
authorTed Zlatanov <tzz@lifelogs.com>
Sat, 14 Dec 2013 18:04:09 +0000 (13:04 -0500)
committerTed Zlatanov <tzz@lifelogs.com>
Sat, 14 Dec 2013 18:04:09 +0000 (13:04 -0500)
commitd84bdd22481af34ac36dcee3d8d38afc4ade4eb7
tree9a56f9ba173c5c21c0d83e38a9502854096f7954
parentb92edbdf4db2b4e395bac2c540824e8e289f033b
New verify-error GnuTLS interface for certificate validation

* net/gnutls.el (gnutls-verify-error): New defcustom to control
the behavior when a certificate fails validation.  Defaults to
old behavior: never abort, just warn.
(gnutls-negotiate): Use it.

* gnutls.c: Replace `:verify_hostname_error' with `:verify_error',
now a list of certificate validation checks that will abort a
connection with an error.
(Fgnutls_boot): Document it and use it.
lisp/ChangeLog
lisp/net/gnutls.el
src/ChangeLog
src/gnutls.c